package com.cn.redis.service;

import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
import org.springframework.stereotype.Service;

/**
 * @author Han
 */
@Service
public class StringRedisService extends BaseRedisService<String, String>{
	//重写valueSerializer
	private RedisSerializer<String> valueSerializer;
	public StringRedisService(){
		this.valueSerializer = new StringRedisSerializer();
	}
	@Override
	public RedisSerializer<String> getValueSerializer() {
		return valueSerializer;
	}
}
